//
//  NSMutableArray+Format.m
//  ERP
//
//  Created by goldeney on 15/6/9.
//  Copyright (c) 2015年 ShangHai Goldeneye Techonology Co.,Ltd. All rights reserved.
//

#import "NSMutableArray+Format.h"

@implementation NSMutableArray (Format)

- (id)objectAtIndexFormat:(NSUInteger)index
{
    if (self && self.count>0 && index<self.count) {
        return [self objectAtIndex:index];
    } else {
        return nil;
    }
}

- (void)addFormatObject:(id)object
{
    if (!object) object = @"";
    [self addObject:object];
}

@end
